import request from '@/tools/request'

export function userUserLogin(params = {},loading = false,) {
    return request({
        url: '/user/user/login.do',
        method: 'post',
        params,
        loading
    })
}

export function userUserFindUserInfo(params = {},loading = false,) {
    return request({
        url: '/user/user/findUserInfo.do',
        method: 'get',
        params,
        loading
    })
}

export function userUserGetChannelByDomain(params = {},loading = false,) {
    return request({
        url: '/user/user/getChannelByDomain.do',
        method: 'get',
        params,
        loading
    })
}

// 新手任务
export function userMissionFindChannelMission(params = {},loading = false,) {
    return request({
        url: '/user/mission/findChannelMission.do',
        method: 'get',
        params,
        loading
    })
}

// banner info 等，
export function userNewsFindBannerList(params = {type: 0},loading = false,) {
    return request({
        url: '/user/news/findBannerList.do',
        method: 'get',
        params,
        loading
    })
}

//公告

// page: 0,
// pageSize: 10,
// pushType: 2,

export function userNewsLoadNews(params = {},loading = false,) {
    return request({
        url: '/user/news/loadNews.do',
        method: 'get',
        params,
        loading
    })
}

// 玩法
export function userArticleArticleDetail(params = {},loading = false,) {
    return request({
        url: '/user/article/articleDetail.do',
        method: 'get',
        params,
        loading
    })
}
// 领取金币
export function userShoppingGetScore(params = {},loading = false,) {
    return request({
        url: '/user/shopping/getScore.do',
        method: 'get',
        params,
        loading
    })
}



// 绑卡信息
export function userUserShowAuthentication(params = {},loading = false,) {
    return request({
        url: '/user/user/showAuthentication.do',
        method: 'get',
        params,
        loading
    })
}

// 获取推广码

// /user/user/findPromoterCode.do

export function userUserFindPromoterCode(params = {},loading = false,) {
    return request({
        url: '/user/user/findPromoterCode.do',
        method: 'get',
        params,
        loading
    })
}

// 退出登录
// /user/user/logout.do

export function userUserLogout(params = {},loading = false,) {
    return request({
        url: '/user/user/logout.do',
        method: 'get',
        params,
        loading
    })
}












